package cn.lili.modules.member.entity.dto;

import cn.lili.common.utils.BeanUtil;
import cn.lili.common.utils.SnowFlake;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 工会成员统计
 */
@Data
public class UnionMemberDetailDTO {

    @ApiModelProperty(value = "工会ID")
    private String unionId;

    @ApiModelProperty(value = "工会成员ID")
    private String memberId;

    @ApiModelProperty(value = "工会成员名称")
    private String memberName;

    @ApiModelProperty(value = "工会成员头像")
    private String memberHead;

    @ApiModelProperty(value = "是否是店主")
    private Integer shopOwnerFlag=0;

    @ApiModelProperty(value = "是否是会长,1:是，0：否")
    private Integer chairmanFlag=0;

    @ApiModelProperty(value = "加入工会时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date joinTime;

    @ApiModelProperty(value = "所在城市")
    private String city;

    @ApiModelProperty(value = "本月业绩")
    private Double monthMoney = 0D;

    @ApiModelProperty(value = "上月业绩")
    private Double lastMonthMoney = 0D;

    @ApiModelProperty(value = "本月订单数")
    private Integer monthOrderSum=0;

    @ApiModelProperty(value = "上月订单数")
    private Integer lastMonthOrderSum=0;

    @ApiModelProperty(value = "下级人数")
    @TableField(exist = false)
    private Integer childCount=0;

    @ApiModelProperty(value = "下级店主人数")
    private Integer shopOwnerCount=0;

    @ApiModelProperty(value = "下级用户人数")
    private Integer userCount=0;

    @ApiModelProperty(value = "本月成交人数")
    private Integer monthTradeCount=0;

    @ApiModelProperty(value = "上月成交人数")
    private Integer lastMonthTradeCount=0;

    private String unionName;

    private String cityId;
    @ApiModelProperty("运营中心名称")
    private String operationCenterName;



}
